<?php

namespace App\Http\Model;


class PointGoods extends Base
{
    protected $hidden = [
        'goods_id', 'is_active', 'sort_order', 'updated_at', 'created_at'
    ];

    public function goods()
    {
        return $this->belongsTo('App\Http\Model\Goods');
    }

    public function getImgUrlAttribute($value)
    {
        if (empty($value)) return $value;

        return env('CDN_DOMAIN') . $value;
    }
}
